{% load pp_url %}
{% load topictags %}
{% load issuetags %}
{% load consensustags %}
{% load argumenttags %}
{% load solutiontags %}
{% load sourcetags %}
{% load tag_helpers %}
{% load logintags %}

	<ul class="d">
    {% pp_user_login_form request=request return_path=request.META.PATH_INFO return_query=request.META.QUERY_STRING %}
    <div id="login" style="{{pp_login.display}}; overflow:hidden; height:120px;">
        <form method="post" action="">
                <li>name: {{ pp_login.form.name }}</li>
                <li>pass: {{ pp_login.form.password }}</li>
                {{ pp_login.form.form_id}}
                {% csrf_token %}
              <li><input type="submit" class="button green" value="Login"></li>
              <div class="error">{{pp_login.errors}}<br>{{ pp_login.form.errors }}</div>
            </form>
    </div>
    {% endpp_user_login_form %}
     </ul>

    {% if request.user.is_authenticated %}
	<ul class="d">
       <b>Recently Visited:</b>       
        {% for name, link in request.session.last_visited reversed %}
		<li><a href="{{link}}">{{name}}</a></li>
		{% endfor %}
	</ul>
    {% endif %}


